package com.ruoyi.proposals.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.proposals.domain.ProComment;
import com.ruoyi.proposals.domain.ProFavorite;
import com.ruoyi.proposals.domain.ProProposals;

import java.util.List;

public interface ProProposalsService extends IService<ProProposals> {

    List<ProProposals> selectList(ProProposals proposals);

    void deleteByIds(Long[] ids);

    List<ProProposals> selectByUserId(ProProposals proposals);

    ProProposals getProposalDetail(Long proposalId);

    List<ProProposals> getFavoritesByUserId(Long userId);

    boolean favoriteProposal(ProFavorite proFavorite);

    boolean commentProposal(ProComment proComment);
}
